package com.day06;

public class TestFolat {
    public static void main(String[] args) {
        int i1=1;//声明int类型变量
        int i2=3;
        float f1=1f;//声明float类型变量
        float f2=3f;
        double d1=2.2;//double类型变量
        double d2=202.2;

        float result1,result2;//记录结果的变量
        double result3,result4;

        result1=i1/i2;//0.0
        result2=f1/f2;//0.33333334

        result3=d1/d2;//0.010880316518298716
        result4=i1+i2;//4.00000001

        System.out.println("result1= "+result1);
        System.out.println("result2= "+result2);

        System.out.println("result3= "+result3);
        System.out.println("result4= "+result4);
    }
}
